projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fc3272
)
Document Repo::new_for_path
author
Felix Krull
<f_krull@gmx.de>
Fri, 24 May 2019 23:34:50 +0000
(
01:34
+0200)
committer
Colin Walters
<walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000
(12:53 -0400)
rust-bindings/rust/src/repo.rs
patch
|
blob
|
history
diff --git
a/rust-bindings/rust/src/repo.rs
b/rust-bindings/rust/src/repo.rs
index 6a7c5933771db79da793ace58c0beba1653ceb45..219b5f77a3421206fc50775a557a74d28e260e03 100644
(file)
--- a/
rust-bindings/rust/src/repo.rs
+++ b/
rust-bindings/rust/src/repo.rs
@@
-35,6
+35,7
@@
unsafe fn from_glib_container_variant_set(ptr: *mut glib_sys::GHashTable) -> Has
}
impl Repo {
+ /// Create a new `Repo` object for working with an OSTree repo at the given path.
pub fn new_for_path<P: AsRef<Path>>(path: P) -> Repo {
Repo::new(&gio::File::new_for_path(path.as_ref()))
}